import request from '@/utils/request'

// 查询代码列表
export function listGen2(query) {
  return request({
    url: '/system/gen2/list',
    method: 'get',
    params: query
  })
}

// 查询代码详细
export function getGen2(columnId) {
  return request({
    url: '/system/gen2/' + columnId,
    method: 'get'
  })
}

// 新增代码
export function addGen2(data) {
  return request({
    url: '/system/gen2',
    method: 'post',
    data: data
  })
}

// 修改代码
export function updateGen2(data) {
  return request({
    url: '/system/gen2',
    method: 'put',
    data: data
  })
}

// 删除代码
export function delGen2(columnId) {
  return request({
    url: '/system/gen2/' + columnId,
    method: 'delete'
  })
}
